package com.bt.service;

import com.bt.dto.YddArticleListDTO;
import com.bt.entity.YddArticle;
import com.bt.result.PageResult;
import com.bt.vo.YddArticlePageVO;

/**
 * @Description TODO
 * @Author 青
 * @Date 2023-05-02 11:37
 */
public interface YddArticleService {
    /**
     * 文章列表分页查询
     *
     * @param yddArticleListDTO
     * @return
     */
    PageResult list(YddArticleListDTO yddArticleListDTO);

    /**
     * 根据id删除文章
     *
     * @param id
     * @return
     */
    void deleteById(Integer id);



    /**
     * 文章添加
     *
     * @return
     */
    void add(YddArticle yddArticle);

    /**
     * 根据id查看文章详情(数据回显)
     * @param id
     * @return
     */
    YddArticle rowInfo(String id);

    /**
     * 文章修改
     * @param yddArticle
     */
    void update(YddArticle yddArticle);
}
